import 'base_sub_result.dart';

class LoginAccessCodeModel extends BaseSubResult {
  //{"resultCode":"103000","desc":"true","operatorType":"联通","traceId":"43250d50992b4f5dac71694eced691d4","scripExpiresIn":"589"}

  String? desc, operatorType, traceId, scripExpiresIn;

  LoginAccessCodeModel(
    super.resultCode,
    this.desc,
    this.operatorType,
    this.traceId,
    this.scripExpiresIn,
  );

  factory LoginAccessCodeModel.fromJson(Map json) {
    return LoginAccessCodeModel(
        json['resultCode'] as String,
        json['desc'] as String,
        json['operatorType'] as String,
        json['traceId'] as String,
        json['scripExpiresIn'] as String);
  }

  Map<String, dynamic> toJson() {
    return {
      "resultCode": resultCode,
      "desc": desc,
      "operatorType": operatorType,
      "traceId": traceId,
      "scripExpiresIn": scripExpiresIn,
    };
  }
}
